package com.dorado;

import com.dorado.kernel.desensitize.sensitive.annotation.EnableSensitive;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * 整个应用启动类（入口）
 *
 * @author Debug
 */

//@EnableDiscoveryClient
//@EnableFeignClients(value = "com.dorado", defaultConfiguration = OpenFeign.class)
@MapperScan(value = {"com.dorado.*.mapper"})
@ComponentScan(value = "com.dorado")
//@EnableFramework
@SpringBootApplication()//(exclude = {DataSourceAutoConfiguration.class})
//@EnableRedis(enableMulti = true)
@EnableSensitive(security = true, sensitive = true, packages = "com.dorado")
public class MsApplication {
    public static void main(String[] args) {
        // 日志处理方案 新增一个Logback的日志脱敏转换器
        //PatternLayout.defaultConverterMap.put("m", DesensitizeConverter.class.getName());

        SpringApplication.run(MsApplication.class);
    }
}